home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr22 / statl411.zip / STATLINE.DOC < prev    next >
Text File  |  1993-05-02  |  20KB  |  407 lines

  1. STATLINE 4.11    (C) Jac Goudsmit   (eng)
  2. ========================================
  3.  
  4.  
  5. Note: This document was created with an editor that uses tabs to compress
  6. spaces. Use the TYPE or MORE command to view this file, or print it on your
  7. printer, and the tabs will be expanded automatically.
  8.  
  9.  
  10. DESCRIPTION:
  11. ------------
  12. In July 1986, PC magazine published a nice utility called STATLINE, written by
  13. John Socha. This was a TSR program that reprogrammed the 6845 video controller
  14. on the Monochrome and Color/Graphics adapter to show an extra screen line.
  15. This 26th line was then used to display the status of the Caps Lock,
  16. Num Lock and Scroll Lock toggles.
  17.  
  18. My STATLINE.COM is based on the original STATLINE from PC magazine but
  19. includes a nice extra feature (a disk indicator, showing which drive is
  20. accessed and how) and solves some problems of the 1986 version. It has been
  21. rewritten almost completely; only the parameter tables for reprogramming the
  22. video controller were left intact from the original.
  23.  
  24. The program is not compatible with EGA and other display adapters, though I am
  25. working on that. Adapters that are not 100% compatible with the monochrome or
  26. color/graphics adapter may have problems with STATLINE. Plasma and LCD displays
  27. will certainly fail to work with the program, because of the fixed dot matrix.
  28. And there is another unsolvable hardware problem: on monochrome displays you
  29. will always see an echo of the top left corner of the screen in the 26th line,
  30. on the CGA you will see part of the next display page when STATLINE is active.
  31.  
  32.  
  33. DEDICATION:
  34. -----------
  35. All the files mentioned in the packing list below are free. No registration is
  36. required, though I would like to see reactions from users, preferably by
  37. electronic mail. You are encouraged to copy the programs and share them with
  38. your friends, distribute them via bulletin boards etc. as long as no charge
  39. is involved, except for media (e.g. floppy disk), and as long as you
  40. distribute the complete package as listed below in unmodified form. The author
  41. prefers you to distribute the ZIP file, STATL411.ZIP, that contains all
  42. programs and documentation files belonging to the package.
  43.  
  44.  
  45. DISCLAIMER:
  46. -----------
  47. STATLINE reprograms video hardware directly and uses undocumented DOS function
  48. calls. Installing and using the program is at your own risk. The author cannot
  49. be held responsible for any damage (including, but not limited to, data loss
  50. and hardware damage) caused by this program. However, the program has been
  51. tested extensively on various hardware and softare configurations and never
  52. caused any severe troble. If your PC or monitor starts acting strange
  53. immediately after loading STATLINE, press Ctrl-Alt-Del. Sometimes your setup
  54. must be changed a little to use the program - particularly the AUTOEXEC.BAT
  55. file and the settings on your monitor (vertical size, vertical hold).
  56. Directions for this, as well as solutions to some problems are included in a
  57. separate file, STATLTEC.DOC. Please send bug reports, suggestions,
  58. remarks etc. to the address below. I'd like to hear from you!
  59.  
  60.  
  61. PACKING LIST:
  62. -------------
  63. You should have received the following files:
  64. FINDDEV  COM    Program that prints device driver information on your screen.
  65. MEMCLEAR ASM    Source code for MEMCLEAR.SYS
  66. MEMCLEAR SYS    Dummy device driver that cleans up memory
  67. STATLINE COM    The STATLINE program
  68. STATLINE DOC    This file
  69. STATLTEC DOC    Some technical documentation and directions in case STATLINE
  70.         fails to install correctly on your system.
  71. You may have STATL411.ZIP. This is a packed (compressed) file out of which you
  72. can extract the files above using a utility like PKUNZIP. The author prefers
  73. you to distribute this packed file, to prevent files getting lost. Use it
  74. to upload STATLINE to a bulletin board system (BBS). Note that the ZIP file
  75. is not necessary for STATLINE (or any other program in the package) to run.
  76.  
  77.  
  78. QUICK START:
  79. ------------
  80. Just to try it out, you can run the program right now by typing STATLINE
  81. at the DOS prompt. Remember that the program only works on CGA and Monochrome
  82. Display Adapters!
  83. You will see a number-sign ('#') when Num Lock is on, an arrow when Caps Lock
  84. is on and a double arrow when Scroll Lock is on. These indicators are always
  85. "in sync" with the real keyboard status (unlike the LEDs on some keyboards)
  86. and are updated anytime you press a key, or every second if you are not
  87. typing. Note that they are only visible in text mode, not in graphics mode
  88. (this is impossible).
  89. Also, the time of day is displayed on the 26th line. This is a new feature of
  90. version 4.11. The colon (":") between the hours and minutes flashes about 3
  91. times per second.
  92. If a program accesses the disk, you will see the drive indicator. This
  93. works like the LED on your disk drives, except that there is only one "LED"
  94. at a time on the screen (which is not a problem since DOS can handle only
  95. one disk drive at a time). Another difference is, that you are able to
  96. see if a disk drive is read from, or written to. It also works with virtual
  97. and device-driven disks. If you have only one floppy drive and the computer
  98. asks you to change disks, you will see a flashing disk indicator that shows
  99. which drive letter DOS is going to read from or write to. Once you have tried
  100. out the program and like it, you may install it into your AUTOEXEC.BAT. This
  101. is covered in the next section. As mentioned early, you don't have to register
  102. or pay a fee to use the program.
  103.  
  104.  
  105. USING STATLINE:
  106. ---------------
  107. You can install STATLINE by putting the command STATLINE in your AUTOEXEC.BAT
  108. (include a path if necessary). The program works fine with no options.
  109. Depending on your display adapter, monitor and personal taste, you can change
  110. some settings (see below).
  111.  
  112. STATLINE is a TSR (Terminate and Stay Resident program) that uses about 2 KB
  113. of memory. That should not be much of a sacrifice.
  114. The best place in the AUTOEXEC to put the command, is difficult to pinpoint.
  115. As usual with all TSR's, this will be a matter of experimenting.
  116. In some cases, STATLINE may report that it was already installed, even if you
  117. just rebooted using Ctrl-Alt-Del. This may happen if (like me) you have a
  118. memory card in your system that does its own RAM refreshing. If STATLINE was
  119. loaded on such a memory board and the system is restarted, it may happen that
  120. it thinks that STATLINE is still there, while it is not. If you regularly
  121. change your AUTOEXEC.BAT and/or CONFIG.SYS, you may find that STATLINE
  122. sometimes thinks it is already installed, while it isn't. In that case you
  123. should install the MEMCLEAR.SYS device driver in your CONFIG.SYS, before any
  124. other device drivers.
  125. MEMCLEAR wipes clean all unused memory in your computer, but doesn't use any
  126. memory itself. Installing MEMCLEAR.SYS is optional and harmless. It is not
  127. necessary for STATLINE to work. It is included in this package.
  128.  
  129.  
  130. OPTIONS:
  131. --------
  132. The entire command parsing section of the program was rewritten in version
  133. 4.10. Users of version 4.02 and older have to change their AUTOEXEC.BAT, as
  134. the command line parameters in version 4.10 and later versions are not
  135. compatible with previous versions.
  136.  
  137. All command line options consist of a slash ('/') followed by one or more
  138. characters indicating the option and the value for that option. The sequence of
  139. the options is not important, but if you specify an option more than once, only
  140. the last instance of the option is valid. Spaces and tabs are ignored.
  141.  
  142. If any options are specified on the command line, STATLINE will show how the
  143. resident portion of the program is set up after the indicated option values
  144. have changed. But if one of the options on the command line is /N, the report
  145. will not be displayed.
  146.  
  147. If you don't want to change any options, but want to see how the resident
  148. portion is set up at the moment, just enter STATLINE, if you know that the
  149. program is already resident. If STATLINE is not in memory yet, type
  150. STATLINE /R (for Report) to install the program and then display the installed
  151. (default) values.
  152.  
  153. If your display is in text mode, your 26th line will be switched on immediately
  154. after STATLINE is run. You can switch it off by using the /O (letter O for Off)
  155. option. To switch the 26th line back on, start up STATLINE without the /O
  156. option.
  157.  
  158. A complete summary of the options follows:
  159.  
  160. /B m [m...]    Beep Mode    Specifies when the speaker is activated.
  161.                 M is one of the following:
  162.                     r for reads  (through file I/O)
  163.                     w for writes (through file I/O)
  164.                     R for direct reads    (disk I/O)
  165.                     W for direct writes (disk I/O)
  166.                     n or N for neutral operations (the device
  167.                     driver is called but generally doesn't
  168.                     access the disk)
  169.  
  170.                 You can combine options by specifying more than
  171.                 one mode at once. e.g. /BRW sounds the speaker
  172.                 if a program accesses any disk directly (read
  173.                 as well as write).
  174.  
  175.                 The default is /BW. To switch off the speaker
  176.                 entirely, use /B without any following
  177.                 characters (except other options).
  178.  
  179. /D n        Duration    This determines the duration of the sound that
  180.                 is produced by the speaker. This value is
  181.                 processor speed dependent. If your processor
  182.                 is fast, use a higher value.
  183.  
  184.                 The minimum value is 1, the maximum is 65535.
  185.  
  186.                 The default is /D4000.
  187.  
  188. /F n        Frequency    This is the frequency of the beep. The minimum
  189.                 value is 40, the maximum is 20000. Not all
  190.                 frequencies in that range are available. Some-
  191.                 times your value is rounded to the nearest
  192.                 available frequency. Note that this value is
  193.                 rounded again (to a multiple of 10) when the
  194.                 report is shown.
  195.  
  196.                 Default value is 2500 Hz.
  197.  
  198. /A mc [,mc...]    Attributes    Determines the attributes of the disk indicator
  199.                 on the status line.
  200.  
  201.                 C determines the color you want STATLINE to use
  202.                 for mode M. To choose M, see the /B option.
  203.                 To choose colors, enter any combination of:
  204.                     r for red foreground
  205.                     g for green foreground
  206.                     b for blue foreground
  207.                     R for red background
  208.                     G for green background
  209.                     B for blue background
  210.                     I or i for high-intensity (bright) colors.
  211.  
  212.                 Note that by combining the primary colors, you
  213.                 can create any color:
  214.                     cyan=gb
  215.                     yellow=rg
  216.                     magenta=rb
  217.                     white=rgb
  218.                 Note that on monochrome adapters, blue shows up
  219.                 as underlined.
  220.  
  221.                 Default values are /Anrgb,rg,wr,Rgi,Wri for
  222.                 CGA adapters. This means white for neutral,
  223.                 green for reads, red for writes, bright green
  224.                 for direct reads, bright red for direct writes.
  225.  
  226.                 The default values for monochrome adapters are
  227.                 /Anb,rrgb,wRGB,Rrgbi,WRGBb. This means
  228.                 underlined for neutral, white for reads,
  229.                 black on white for writes, bright white for
  230.                 direct reads and underlined black on white
  231.                 for direct writes.
  232.  
  233.                 The indicators for Num Lock, Caps Lock and
  234.                 Scroll Lock have the same color as the disk
  235.                 indicator in read mode.
  236.  
  237.                 To switch the indicator off completely for one
  238.                 mode, use a mode character followed by a comma
  239.                 or by another option (starting with '/'), or
  240.                 by nothing.
  241.  
  242. /R        Report        Forces generation of a report about the current
  243.                 settings of STATLINE. Normally, a report is
  244.                 generated whenever you change the settings or
  245.                 when you start STATLINE when it is already in
  246.                 memory. Note: The /N option overrides the /R
  247.                 option.
  248.  
  249. /N        No report    Disables generation of a report about the
  250.                 current settings. See also the /R option.
  251.  
  252. /O        Off        Temporarily switches off the status line
  253.                 display. This may be necessary with programs
  254.                 that reprogram the video controller directly,
  255.                 to switch to graphics modes. In such a program,
  256.                 STATLINE cannot detect the mode change and
  257.                 thus interferes with the program's output.
  258.  
  259.                 Note that the speaker is not switched off by
  260.                 this option.
  261.  
  262.                 The status line is switched back on if STATLINE
  263.                 is run next time.
  264.  
  265. /T        Time        This switch toggles the time-of-day display.
  266.                 The default is ON. Note that the time on your
  267.                 screen is not precisely accurate. Because of
  268.                 rounding errors, the time runs a bit fast
  269.                 compared to the DOS system timer. The maximum
  270.                 difference is about 20 seconds - You can see
  271.                 this at the end of the day: the STATLINE clock
  272.                 will display "24:00" for about 20 seconds,
  273.                 while DOS tells you it is only 23:59.
  274.                 The colon between the digits is updated every
  275.                 third timer interrupt. If a program disables
  276.                 interrupts for a while, the colon stays steady.
  277.  
  278.                 Note: Specifying the /T switch more than once
  279.                 toggles the setting for every occurrence of the
  280.                 parameter.
  281.  
  282.  
  283. FINDDEV - THE DEVICE DRIVER FINDER:
  284. -----------------------------------
  285. The FINDDEV program will easily spot STATLINE intercepted devices: run FINDDEV
  286. before and after STATLINE's initialization and you will see the difference.
  287. FINDDEV was a tryout to see if my device-spotting algorithm really works.
  288. If FINDDEV doesn't work on your system, STATLINE won't, either. If you have
  289. any problems, FINDDEV will help you (and me) to find out what's "wrong" with
  290. your configuration, from the program's point of view.
  291. FINDDEV is included in this package.
  292.  
  293.  
  294. ERROR MESSAGES:
  295. ---------------
  296. When installing STATLINE or changing parameters, you may see one of a few error
  297. messages. The program will report if it has been installed or not,
  298. or if it has been installed partially, i.e. it is resident, but it may not work
  299. for some devices in your system.
  300. The possible error messages are:
  301. 1. "Bad DOS version." The program needs DOS 3.0 or up.
  302.    STATLINE has been tested from DOS 3.00 to DOS 4.00. Both MS-DOS and PC-DOS
  303.    should work.
  304. 2. "Bad parameter(s)." If there is a bad character in your parameters or if
  305.    a numeric value is out of range, the program issues this message.
  306.    If STATLINE was already in memory before you started the program, only the
  307.    parameters that could be successfully evaluated, are processed.
  308. 3. "Too many block devices." The buffer for device drivers was full
  309.    before the end of DOS' table was reached. The program will be installed
  310.    partially; the drivers that are not installed possibly signal direct reads
  311.    and writes instead of normal reads and writes. In this version of the
  312.    program, there is room for 16 drivers, which should be enough for most
  313.    cases, since one driver may contain more than one logical disk drive.
  314. 4. "Device block error." An error or inconsistency was encountered while
  315.    installing one of the device drivers into STATLINE's tables. Some of the
  316.    drivers may have been ignored, possibly causing them to signal only direct
  317.    access. This error is not very likely to occur in current DOS versions,
  318.    except in extraordinary environments that I was not able to test STATLINE in.
  319. 5. "Error in number of block devices." While scanning through the device header
  320.    chain, the number of logical disks are counted and matched at the end with
  321.    the value of MAXDRIVE. This however is an undocumented constant so it may
  322.    change in future DOS versions, though it is not very likely to do so. If
  323.    this error is displayed, one or more drives may display wrong drive letters.
  324.    However this will not affect the operation of those drives.
  325. 6. "Device header chain not found." STATLINE didn't find the NUL device driver
  326.    as first driver in the chain. This is possible in new DOS versions, but
  327.    again very unlikely to happen. If this error occurs, STATLINE will not
  328.    install. Please contact me if this happens.
  329.  
  330. Diagnostic messages:
  331. 1. "STATLINE has been installed." Diagnostic message saying that STATLINE is in
  332.    operation as from now on.
  333. 2. "STATLINE already installed." Another copy of STATLINE was found in memory.
  334.    It will not re-install, but it will change the values of the resident
  335.    copy if you specify any command line parameters.
  336.    It is not possible to uninstall this version of STATLINE. It is possible
  337.    however to deactivate it using the /O switch. The program uses about 2K of
  338.    memory. Uninstallation code and data would take up a considerable amount of
  339.    memory, including resident memory. My opinion is that the possibility to
  340.    uninstall was not necessary. It's definitely not easy to implement routines
  341.    that reverse the process of walking through DOS' chain of device drivers.
  342.    Users of TSR managers should be aware that STATLINE plays around with
  343.    hardware and with the innards of DOS. Uninstalling via a TSR manager is
  344.    probably disastrous, if at all possible.
  345.    NOTE: if STATLINE gives you this error message but you just restarted your
  346.    system using Ctrl-Alt-Del, you shoud install the MEMCLEAR.SYS dummy device
  347.    driver into your CONFIG.SYS, before any other device drivers.
  348.    This cleans up your memory at startup time, so STATLINE doesn't find a false
  349.    copy of itself in memory.
  350. 3. "Installed values are..." A report is generated on the values that are
  351.    loaded into the resident portion of STATLINE. This happens if you run
  352.    STATLINE and it is already in memory, or if you change parameters. To
  353.    suppress the report, include a /N parameter in your command.
  354.  
  355.  
  356. LAST-MINUTE PROBLEM UPDATE:
  357. ---------------------------
  358. Just before the release of version 4.11, I discovered that WordPerfect's screen
  359. driver for Hercules-compatible displays does its own video controller
  360. reprogramming, disregarding the standard Video Parameters table. Consequently,
  361. the 26th line disappears as soon as WP is started, and garbage appears on the
  362. View Document screen (graphics mode). STATLINE does not interfere with WP and
  363. causes no trouble to hardware or software, but the garbage in the View Document
  364. is far from elegant, of course. To avoid the garbage, switch the status line
  365. off by starting STATLINE using the /O option. This can be done either before
  366. WP is started, or from within WP (Goto Dos).
  367. The next STATLINE-version will have a hot key to switch the 26th line on and
  368. off. Furthermore, I'll try to find out more about the WP anomaly and make a
  369. patch program if necessary and possible.
  370. By the way: I found out that STATLINE cooperates perfectly with Microsoft
  371. run-time libraries that require the MSHERC.COM or QBHERC.COM program to be
  372. loaded for graphics on the Hercules. That TSR installs a new video mode (9)
  373. to change to graphics mode. STATLINE switches off automatically when the video
  374. mode is set to 9, thereby avoiding garbage like in WP automatically.
  375.  
  376.  
  377. CONCLUSION:
  378. -----------
  379. Though it seems that there aren't many CGA and MDA users left, I think
  380. that those who don't think it's necessary to upgrade to VGA (for financial or
  381. any other reasons) will be happy with this nifty little program.
  382.  
  383.                     Jac Goudsmit
  384.                     Weegbree 101
  385.                     5684 JC Best
  386.                     The Netherlands
  387.  
  388.                     25 Mar 1991
  389.  
  390. At the moment, my E-mail address is: <S89406316@HSEPM1.HSE.NL>
  391. If your mailer doesn't recognize this, try <S89406316%HSEPM1.HSE.NL@HEARN> on
  392. BITNET. This E-mail address will probably not expire until 1993. That's when
  393. my study at Hogeschool Eindhoven will be finished (I hope).
  394.  
  395. Extensions that I have in mind for future versions:
  396. * Improvement of resident-scan-procedure using DOS memory control blocks, so
  397.   that MEMCLEAR isn't necessary anymore
  398. * EGA and VGA compatibility
  399. * Hot key to toggle status line
  400. * Patch for WordPerfect Hercules driver
  401. - Further features on command line itself (optional file-name display...)
  402. - Other features using the command line (using menu-system on 26th line)
  403. - User extensions (binary files
  404. Lines marked with '*' are "in the making". Lines marked '-' are vague (long
  405. term) ideas. Expected release date of next version: 3rd quarter of 1991.
  406. Further suggestions are welcome!
  407.